<?php
/**
 * @version                $Id: index.php 21518 2011-06-10 21:38:12Z chdemko $
 * @package                Joomla.Site
 * @subpackage	Templates.beez_20
 * @copyright        Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license                GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

// check modules
//$showRightColumn        = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
//$showbottom                        = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showleft                       = ($this->countModules('left1') or $this->countModules('left2') or $this->countModules('left3'));
$showright						= ($this->countModules('right1') or $this->countModules('right2'));
//if ($showRightColumn==0 and $showleft==0) {
        //$showno = 0;
//}

JHtml::_('behavior.framework', true);

// get params
$logo               = $this->params->get('logo');
$navposition        = $this->params->get('navposition');
$app                = JFactory::getApplication();
//$doc				= JFactory::getDocument();
$templateparams     = $app->getTemplate(true)->params;
$uri				= JFactory::getURI();
$path				= $uri->getPath();				

//$doc->addScript($this->baseurl.'/templates/beez_20/javascript/md_stylechanger.js', 'text/javascript', true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
        <head>
                <jdoc:include type="head" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/template.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/common.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/advsheadlb.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/newslist_time.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/productlist.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/searchform_simple.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/a.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/a1.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/module.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/article_list.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/qq_service.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/products_list.css" type="text/css" />
                <?php 
                //if ($path=='/'){//首页，slider
                ?>
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/yuanyi/css/slider.css" type="text/css" />
                <?php 
                //}
                ?> 
                <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/yuanyi/javascript/jquery-1.6.js"></script>
                <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/yuanyi/javascript/advsheadlb.js"></script>
                <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/yuanyi/javascript/jquery-ui-1.8.16.custom.min.js"></script>
                <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/yuanyi/javascript/MSClass.js"></script>
                <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/yuanyi/javascript/searchform.js"></script>
                
                <script type="text/javascript"> 
                //QQ 客服
                $(window).scroll(function(){   $('#float_div').css('top', $(document).scrollTop() + $(window).height() - $('#test').height()-450);  });
                </script>
                <style>
                </style>
        </head>
        <body>
        <div id="float_div" style="">
    		<div class='title'>
    			<div class='t1'></div>
    			<div class='t2'>
    				<div class='txt'>客服</div>
    			</div>
    			<div class='t3'></div>
    		</div>
    		<br/><br/>
    		<div class='qq_menu'>
    			<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=328799457&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:328799457:41 &r=0.12746387510560453" alt="你好，热诚为您服务！" title="你好，热诚为您服务！"></a>
    		</div>
    		<div class='qq_menu'>
    			<b>电话：</b>
    			<br/>
    			<span style='color:red;'>13850569618</span>
    		</div>
    	</div>  
        <div id="contain">
			<div id="top">				
			<!-- 网站标志 -->
				<div id="pdv_10806" class="pdv_class">
					<div id="spdv_10806" class="pdv_top" style="">
						<div class="pdv_border" style="">
							<div style="padding:0px">
							<?php if ($logo){ ?>
								<img src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($logo); ?>"  
									alt="<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>" />
								<span style='font-size:30px;color:white;font-weight:bold;margin-left:10px;'>
								<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>		
								</span>					
							<?php }else{?>
								<img src="<?php echo $this->baseurl ?>/templates/yuanyi/images/web_name.jpg" border="0">
							<?php }?>								
							</div>
						</div>				
					</div>
				</div>
				
			<!-- 一级导航菜单 -->
				<div id="pdv_18174" class="pdv_class">
					<div id="spdv_18174" class="pdv_top">
						<div class="pdv_border">
							<div style="padding:0px">
								<div id="menumain_dolphin" style="align:center;">
									<jdoc:include type="modules" name="top_menu" />
								</div>							
							</div>
						</div>
					
					</div>
				</div>

			<!-- 全站搜索表单 -->
				
				<div id="pdv_20286" class="pdv_class" title="" style="width:295px;height:34px;top:38px;left:692px; z-index:11">
					<div id="spdv_20286" class="pdv_top">
						<div class="pdv_border">
							<div style="padding:0px">
								<div class="globalsearchformzone">
									<jdoc:include type="modules" name="top_search" />
									<!-- 
									<form id="globalsearchform" method="get" action="http://demo.2799.cn/1318313294/search/index.php">
									   	<div class="globalsearchform">
									    	<input name="key" type="text" id="globalsearchform_key" value="" size="28" class="input">
									  	</div>
										<div class="globalsearchform1">
									  		<input name="imageField" id="button" type="image" src="<?php echo $this->baseurl ?>/templates/yuanyi/images/searchr.gif" class="imgbutton">
									  	</div>
									</form>
									 -->
								</div>						
						</div>
						</div>
					
					</div>
				</div>

				<!-- 头部图片轮播 -->			
				<div id="pdv_20287" class="pdv_class" title="" style="width:1002px;height:290px;top:164px;left:0px; z-index:12">
					<div id="spdv_20287" class="pdv_top" style="overflow:hidden;width:100%;height:100%">
						<div class="pdv_border" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; height: 280px; border-top-width: 5px; border-right-width: 5px; border-bottom-width: 5px; border-left-width: 5px; border-top-color: rgb(0, 165, 66); border-right-color: rgb(0, 165, 66); border-bottom-color: rgb(0, 165, 66); border-left-color: rgb(0, 165, 66); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; ">
							<div style="padding:0px">			
								<div id="advsheadlb">								
									<img src="<?php echo $this->baseurl ?>/templates/yuanyi/images/middle1.jpg" border="0" class="advsheadlbpic" id="advsheadlbpic_0" style="display: none; ">
									<img src="<?php echo $this->baseurl ?>/templates/yuanyi/images/middle2.jpg" border="0" class="advsheadlbpic" id="advsheadlbpic_1" style="display: inline; ">
								</div>
							
							</div>
						</div>					
					</div>
				</div>
		</div>
		
		<div id='main_content' style=" background-color:#00A542;margin-top:0px;margin-bottom:0px;height:auto !important;border:1px solid #00A542;">
			<?php if ($showleft): ?>
				<div style="width:300px;float:left;background-color:#00A542;;">
					<jdoc:include type="modules" name="left1"   />
					<jdoc:include type="modules" name="left2"   />
					<jdoc:include type="modules" name="left3"   />
				</div>
			<?php endif; ?>	
			<?php //if($path!='/' && $path!='/index.php') {?>
				<div style="margin:0px; margin-left:300px;width:700px; _width:600px; 
					background-color:#00A542;height:auto!important;height:680px; min-height:600px;">	     
					<div style="background-color:white;margin-right:5px;min-height:600px;">
						<div style="width:660px;_width:657px;height:44px;
						background-image:url(<?php echo $this->baseurl ?>/templates/yuanyi/images/position.jpg);padding-top:15px;padding-left:35px;">
							<jdoc:include type="modules" name="navigation" />
						</div>
						<div style='padding:15px;' style='_width:650px'>
							<jdoc:include type="message" />
		                	<jdoc:include type="component" />	
						</div>							
					</div>  		                
		        </div>	
		     <?php //} ?>
			<?php if ($showright){ ?>
		     	<div style="margin:0px; margin-left:300px;width:700px; _width:600px;height:auto!important;height:680px; min-height:600px;  ">
		     		<jdoc:include type="modules" name="right1"   />
		     		<jdoc:include type="modules" name="right2"   />
		     	</div>
			<?php } ?>
		</div>
		<div id='footer' style='width:1002px;height:104px;margin-top:0px;background-image:url(<?php echo $this->baseurl ?>/templates/yuanyi/images/1278393227.jpg)'>
			<div style='text-align: center;padding-top:25px;color:#dddddc;'>
				<jdoc:include type="modules" name="buttom_menu" />
			</div>
			<div style="margin-top:5px;TEXT-ALIGN: center; LINE-HEIGHT: 24px;  FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; COLOR: #dddddc">
				版权所有 Copyright(C)2011-2013 ) 福州华超有限公司
				<script src="http://s24.cnzz.com/stat.php?id=3642556&web_id=3642556&show=pic1" language="JavaScript"></script>
				
			</div>
		</div>		
	</div>
	 </body>
</html>
